<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue中组件基础</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="box"></div>
    <script>
        // createApp代表就是Vue创建的一个应用
        const app = Vue.createApp({
            data(){
                return{
                    message:'hello world'
                }
            },
            template:"<div>{{message}}</div>"
        });
        // vm 代表就是Vue应用的根组件
        const vm =  app.mount("#box");
    </script>
</body>
</html>